package com.huage_08.lesson_03;

public class Producer implements Runnable{
    private Box box;

    public Producer() {
    }

    public Producer(Box box) {
        this.box = box;
    }

    @Override
    public void run() {
        for (int i=1;i<=5;i++){
            box.put(i);
        }
    }
}
